<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="htmlPage" /></title>
</head>
<body>
    <h1><fmt:message key="htmlPage" /></h1>
    <table>
        <tbody>
   
            <tr>
                <th><fmt:message key="htmlPage_title" /></th>
                <td>
                    <c:out value="${htmlPage.title}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_template" /></th>
                <td>
                    <c:url var="templateUrl" value="/domain/template/show">
                        <c:param name="template.inode" value="${htmlPage.templateInode}"/>
                    </c:url>
                    <a href="${templateUrl}"><c:out value="${htmlPage.template.title}"/></a>           
				</td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_folder" /></th>
                <td>
                    <c:out value="${htmlPage.parentNode.title}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_showOnMenu" /></th>
                <td>
                    <c:out value="${htmlPage.showOnMenu}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_sortOrder" /></th>
                <td>
                    <c:out value="${htmlPage.sortOrder}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_friendlyName" /></th>
                <td>
                    <c:out value="${htmlPage.friendlyName}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_pageType" /></th>
                <td><c:out value="${htmlPage.pageType}" /></td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_pageHandler" /></th>
                <td><c:out value="${htmlPage.pageHandler}" /></td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_pageUrl" /></th>
                <td>
                    <c:out value="${htmlPage.pageUrl}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_httpsRequired" /></th>
                <td>
                    <c:out value="${htmlPage.httpsRequired}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_redirect" /></th>
                <td>
                    <c:out value="${htmlPage.redirect}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_metaData" /></th>
                <td>
                    <c:out value="${htmlPage.metaData}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_modDate" /></th>
                <td>
                    <c:out value="${htmlPage.modDate}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="htmlPage_modUser" /></th>
                <td>
                    <c:out value="${htmlPage.modUser}"/>                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/htmlPage/updateForm">
                            <c:param name="htmlPage.inode" value="${htmlPage.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="updateMetaUrl" value="/domain/htmlPage/updateMetaForm">
                            <c:param name="htmlPage.inode" value="${htmlPage.inode}"/>
                        </c:url>
                        <a href="${updateMetaUrl}"><span><fmt:message key="label.link.update"/>Meta</span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/htmlPage/confirmDelete">
                            <c:param name="htmlPage.inode" value="${htmlPage.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
    <h2><fmt:message key="label.related.content"/></h2>
</body>
